package com.mdlib.helper.ui.fragments.rush.me;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import com.ljlib.help.R;
import com.mdlib.helper.base.BaseAppFragment;
import com.mdlib.helper.model.entity.MessageEntity;


/**
 * 作者：HQY on 16/11/30 17:06
 * 邮箱：hqy_xz@126.com
 */

public class RushMessageDetailsFragment extends BaseAppFragment {


    private static String MESSAGES = "message";

    private MessageEntity messageEntity;


    public static RushMessageDetailsFragment newInstance(MessageEntity messageInfo) {
        RushMessageDetailsFragment fragment = new RushMessageDetailsFragment();
        Bundle bundle = new Bundle();
        bundle.putSerializable(MESSAGES, messageInfo);
        fragment.setArguments(bundle);
        return fragment;
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            messageEntity = (MessageEntity) bundle.getSerializable(MESSAGES);
        }
    }

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_rush_message_details;
    }

    @Override
    protected void initView(View view, Bundle savedInstanceState) {
        initTopbar(true, getActivity().getResources().getString(R.string.rush_message_details_title), R.color.generic_view_bg);

    }
}
